package operation;

import Book.Book;
import Book.BookList;

/**
 * Created with IntelliJ IDEA.
 * User: wenxiwen
 * Date: 2022/4/13
 * Time: 17:29
 * Description: No Description
 */
public class Display implements IOperation{

    public void work(BookList booklist) {
        System.out.println("显示图书");
        int index = booklist.getCount();

        for (int i = 0; i < index; i++) {
            Book book = booklist.getBook(i);
            System.out.println(book);
        }
    }
}